Disable some irrelevant functions
authorFelix Krull <f_krull@gmx.de>
Tue, 25 Aug 2020 21:45:32 +0000 (23:45 +0200)
committerColin Walters <walters@verbum.org>
Fri, 6 May 2022 16:53:56 +0000 (12:53 -0400)
rust-bindings/rust/conf/ostree.toml
rust-bindings/rust/src/auto/functions.rs
rust-bindings/rust/src/auto/versions.txt
rust-bindings/rust/sys/src/auto/versions.txt

index 69a1c5cc1e8ccf73e75ba595dc38b68473d410df..8b905fcd18985ec68720ce0be44066a8f47ec267 100644 (file)
@@ -195,8 +195,13 @@ status = "generate"
 name = "OSTree.*"
 status = "generate"
     [[object.function]]
-    # both too low-level to be generated safely
-    pattern = "cmp_checksum_bytes|checksum_inplace_to_bytes"
+    # low-level functions with unsafe APIs
+    pattern = "cmp_checksum_bytes|checksum_inplace_to_bytes|hash_object_name"
+    ignore = true
+
+    [[object.function]]
+    # private API
+    pattern = "cmd__private__"
     ignore = true
 
     [[object.constant]]
index 9ae950ec14a8fd7af36ddf430b27a6a0edf1aa63..82e398b69bfd0e7aec3da5833ec458571a647167 100644 (file)
@@ -98,10 +98,6 @@ pub fn checksum_to_bytes_v(checksum: &str) -> Option<glib::Variant> {
     }
 }
 
-//pub fn cmd__private__() -> /*Ignored*/Option<CmdPrivateVTable> {
-//    unsafe { TODO: call ostree_sys:ostree_cmd__private__() }
-//}
-
 #[cfg(any(feature = "v2018_2", feature = "dox"))]
 pub fn commit_get_content_checksum(commit_variant: &glib::Variant) -> Option<GString> {
     unsafe {
@@ -192,10 +188,6 @@ pub fn gpg_error_quark() -> glib::Quark {
     }
 }
 
-//pub fn hash_object_name(a: /*Unimplemented*/Option<Fundamental: Pointer>) -> u32 {
-//    unsafe { TODO: call ostree_sys:ostree_hash_object_name() }
-//}
-
 pub fn metadata_variant_type(objtype: ObjectType) -> Option<glib::VariantType> {
     unsafe {
         from_glib_none(ostree_sys::ostree_metadata_variant_type(objtype.to_glib()))
index 48860c459791d6562fafde34ec5432b7dfb9c923..85a1b25d4e57609913c44397c8723b4b85cef42e 100644 (file)
@@ -1,2 +1,2 @@
 Generated by gir (https://github.com/gtk-rs/gir @ 2d1ffab1)
-from gir-files (https://github.com/gtk-rs/gir-files @ 9b77077+)
+from gir-files (https://github.com/gtk-rs/gir-files @ eec42a9)
index 48860c459791d6562fafde34ec5432b7dfb9c923..85a1b25d4e57609913c44397c8723b4b85cef42e 100644 (file)
@@ -1,2 +1,2 @@
 Generated by gir (https://github.com/gtk-rs/gir @ 2d1ffab1)
-from gir-files (https://github.com/gtk-rs/gir-files @ 9b77077+)
+from gir-files (https://github.com/gtk-rs/gir-files @ eec42a9)